﻿using System;

namespace SARS.Entity
{
    public class UserEntity
    {
        public Int32 UserID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime DOB { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public string Picture { get; set; }
        public string Address { get; set; }
        public string Phone { get; set; }
        public string Email { get; set; }
        public RoleType UserRole { get; set; }

        /// <summary>
        ///     Determine user's avaibility.
        ///     Note: 0 = disable, 1 = enable
        /// </summary>
        public Int32 Status { get; set; }

        public string FullName
        {
            get { return string.Format("{0} {1}", LastName, FirstName); }
        }

        public string FullNameRole
        {
            get { return string.Format("{0} {1} - {2}", LastName, FirstName, UserRole); }
        }
    }
}